
package edu.up.globalizacao;

import java.util.Locale;
import java.util.ResourceBundle;

public class LabelReader 
{
	private String country;
	private ResourceBundle language;
	
	public LabelReader(String country) 
	{
		this.country = country;
		LabelLocale rlocale = LabelLocale.getInstance();
		if( this.country == null )
			this.language = rlocale.getBundle( Locale.getDefault().toString() );	
		else
			this.language = rlocale.getBundle( country );	
	}
	
	public String getProperty(String key) {		
		return this.language.getString( key );	
	}
}